﻿using System.Collections.Generic;

namespace OneWorks.Utils.Metadata.Interface
{
    using Entity;

    /// <summary>
    ///操作表
    /// </summary>
    public interface ITable
    {
        /// <summary>
        /// 获取表集合
        /// </summary>
        /// <param name="dbName"></param>
        /// <param name="include"></param>
        /// <returns></returns>
        List<Table> GetTables(string dbName = "", bool include = false);

        /// <summary>
        /// 查询表
        /// </summary>
        /// <param name="tbName"></param>
        /// <param name="dbName"> </param>
        /// <param name="include"> </param>
        /// <returns></returns>
        Table FindTable(string tbName, string dbName = "",bool include = false);
    }
}
